/**
 *@desc    vue实例方法配置文件
 *@author  yhy
 *@date    2019/02/20
 */
import * as sessionConfig from '@/utils/sessions/sessionConfig'
import router from '@/router'
export default {
  install (Vue, options) {
    // 添加session方法
    Vue.prototype.$storage = sessionConfig
    // 路由跳转
    Vue.prototype.$goPath = (mPath, mQuery = {}) => {
      router.push({
        path: mPath,
        query: mQuery
      })
    }
  }
}
